<template>
  <div>
    <a-descriptions bordered :column="4">
      <a-descriptions-item label="支撑集群接口表名" :span="2">
        {{ strutInfo.clusterTableName }}
      </a-descriptions-item>
      <a-descriptions-item label="rowkey设计规则" :span="2">
        {{ strutInfo.rowkeyRule }}
      </a-descriptions-item>
      <a-descriptions-item label="接口表当前数据量" :span="2">
        {{ strutInfo.dataVolume }}
      </a-descriptions-item>
      <a-descriptions-item label="数据增长量(条/日)" :span="2">
        {{ strutInfo.dataGrowth }}
      </a-descriptions-item>
    </a-descriptions>
    <a-table :columns="clusterColumn" :data-source="strutInfo.clusterTableList"> </a-table>
  </div>
</template>

<script>
export default {
  name: 'strutDeviceDescription',
  props: {
    strutInfo: {
      type: Object
    }
  },
  data() {
    return {
      clusterColumn: [
        { title: '字段名', dataIndex: 'columnName' },
        { title: '字段类型长度', dataIndex: 'columnType' },
        { title: '字段中文含义', dataIndex: 'columnCnMeaning' }
      ]
    }
  }
}
</script>

<style scoped lang="less"></style>
